package com.lmt.controller;

import com.lmt.entity.User;
import com.lmt.feign.UserFeignClient;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description: TODO
 * @Author: Amazing
 * @Date: 2022/8/1 15:10
 * @Version: 1.0
 */
@RestController
@AllArgsConstructor
public class OrderController {

    private UserFeignClient userFeignClient;

    @GetMapping("/getUserById/{id}")
    public User getUserById(@PathVariable Long id) {
        return userFeignClient.getUserById(id);
    }
}
